import { from } from './util'

export class Demo {
  id: string = ''
  name: string = ''
  age: string = ''
  sex: string = ''
  account: string = ''
  inputStr: string = ''
  inputArea: string = ''
  singleSelect: string = ''
  multiSelect: string[] = []
  radioContent: string = ''
  checkContent: string[] = []
  static from(data: any) {
    return from(Demo, data)
  }
}

export function getDefault() {
  return Demo.from({ id: '-1' })
}
